import {backPack} from "./backpack/backPack";

export type ItemRemoveRecord = {
    itemID: string,
    isRemoveGameObject: boolean,
}

export class User {

    name: string = "";

    // keys: string[] = ["ironKey","bag","candle1","candle2","crazyWord","diary","fire","gun","knife","noteMan"];
    // keys: string[] = ["E","crazyWord","ironKey","knife","candle1","gun","bag"];
    keys: string[] = [];

    mind: number = 100;

    sceneRecord: string[] = [];

    itemRemoveRecord: ItemRemoveRecord[] = [];

    hiddenClueItemRecord:string[] = [];

    useBagItems:string[] = [];

    firstInStartScene:boolean=true;

    limitedTimeMission:number = 0;

    addSceneRecord(scene: string) {
        this.sceneRecord.push(scene);
        // this.sceneRecord.unshift(scene);
        console.log(this.sceneRecord);
    }

    addItemRemoveRecord(currentitemID: string, currentisRemoveGameObject: boolean) {
        const record = { itemID: currentitemID, isRemoveGameObject: currentisRemoveGameObject };
        this.itemRemoveRecord.push(record);
        console.log(this.itemRemoveRecord);
    }

}


export const user = new User();
backPack.objsInBackPack=user.keys;